
import request from '@/utils/request';

// 查询列表
export async function queryDefineGroup(params) {
  return request('/s/group/queryPageList', {
    method: 'POST',
    data: params,
  });
}
// 新增
export async function addDefineGroup(params) {
  return request('/s/group/add', {
    method: 'POST',
    data: params,
  });
}

// 删除
export async function removeDefineGroup(params) {
  return request('/s/group/delete', {
    method: 'POST',
    data: params,
  });
}

// 修改
export async function updateDefineGroup(params) {
  return request('/s/group/update', {
    method: 'POST',
    data: params,
  });
}

// 详情
export async function queryIdDefineGroup(params) {
  return request('/s/group/queryDetail', {
    method: 'POST',
    data: params,
  });
}

// 组内人员
export async function queryCustomOrgUserTree(params) {
  return request('/s/org/queryCustomOrgUserTree', {
    method: 'POST',
    data: params,
  });
}

// 管理员
export async function queryAdmin(params) {
  return request('/s/org/queryAdmin', {
    method: 'POST',
    data: params,
  });
}

// 获取人员
export async function queryPageListByOrg(params) {
  return request('/s/group/queryPageListByOrg', {
    method: 'POST',
    data: params,
  });
}
